<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script>
    var func = function(){
        var a=10;
        var b = "hello";
    };
    func.data="hello";
    func = new Array(9, 0, 10, 4);
    func.sort();
    
    for(var key in func){
        console.log(key +", "+func[key]);
    }
    console.log(func);
    func.sort(function(x, y){return x-y;});
    func.sort
    console.log(func);
</script>
</head>
<body>
   
</body>
</html>